package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DituDao;
import io.renren.entity.Ditu;
import io.renren.service.DituService;



@Service("dituService")
public class DituServiceImpl implements DituService {
	@Autowired
	private DituDao dituDao;
	
	@Override
	public Ditu queryObject(Integer id){
		return dituDao.queryObject(id);
	}
	
	@Override
	public List<Ditu> queryList(Map<String, Object> map){
		return dituDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dituDao.queryTotal(map);
	}
	
	@Override
	public void save(Ditu ditu){
		dituDao.save(ditu);
	}
	
	@Override
	public void update(Ditu ditu){
		dituDao.update(ditu);
	}
	
	@Override
	public void delete(Integer id){
		dituDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		dituDao.deleteBatch(ids);
	}
	
}
